﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BOMS.Model
{
	[Serializable]
	public class S_Warning
	{
		public S_Warning()
		{}
		#region Model
		private int _id;
		private string _equipid;
        private string _hostname;
        private string _ip;
		private string _batterygroup;
		private int _batteryid;
		private DateTime _warningtime;
		private string _warningstatus;
        private int _warningno;
		private string _note;
		private bool _isactive;
		/// <summary>
		/// 记录ID
		/// </summary>
		public int ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 设备ID
		/// </summary>
		public string EquipID
		{
			set{ _equipid=value;}
			get{return _equipid;}
		}
        /// <summary>
        /// 设备名称
        /// </summary>
        public string HostName
        {
            set { _hostname = value; }
            get { return _hostname; }
        }
        /// <summary>
        /// 设备IP
        /// </summary>
        public string IP
        {
            set { _ip = value; }
            get { return _ip; }
        }
		/// <summary>
		/// 电池组号
		/// </summary>
		public string BatteryGroup
		{
			set{ _batterygroup=value;}
			get{return _batterygroup;}
		}
		/// <summary>
		/// 电池编号
		/// </summary>
		public int BatteryID
		{
			set{ _batteryid=value;}
			get{return _batteryid;}
		}
		/// <summary>
		/// 报警时间
		/// </summary>
		public DateTime WarningTime
		{
			set{ _warningtime=value;}
			get{return _warningtime;}
		}
		/// <summary>
		/// 报警状态
		/// </summary>
		public string WarningStatus
		{
			set{ _warningstatus=value;}
			get{return _warningstatus;}
		}
        /// <summary>
        /// 报警类型编号
        /// </summary>
        public int WarningNO
        {
            set { _warningno = value; }
            get { return _warningno; }
        }
		/// <summary>
		/// 备注信息
		/// </summary>
		public string Note
		{
			set{ _note=value;}
			get{return _note;}
		}
		/// <summary>
		/// 是否活动的
		/// </summary>
		public bool IsActive
		{
			set{ _isactive=value;}
			get{return _isactive;}
		}
		#endregion Model

	}
    public class WarningStatus
    {
        string _Status;
        int _Count;
        public string Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        public int Count
        {
            get { return _Count; }
            set { _Count = value; }
        }

    }
}


